package com.blog.exception;

/**
 * @author cgx
 * @Date 2021/9/25 10:03
 */
public class LoginExistsException extends Exception{

    /**
     * 错误码
     */
    private String errorCode;

    public String getErrorCode(){
        return  errorCode;
    }

    /**
     *
     * @param msg 异常返回信息
     * @return errorCode 异常返回的errorCode
     */
    public LoginExistsException(String msg,String errorCode){
        super(msg);
        this.errorCode = errorCode;
    }
}
